package com.seabook.store.auth.dao;


import java.util.List;

import com.seabook.store.auth.domain.Address;
import com.seabook.store.auth.domain.User;

public interface UserDao {
    public boolean validateUserName(String userName);
    
    public User checkUser(String userName, String password);
    
    public User getUserByName(String userName);
    
    public User getUserById(int userId);
    
    public int createUser(String username, String password);
    
    public int saveUser(User user);
    
    public Address addAddress(Address address);
    
    public void updateAddress(Address address);
    
    public boolean removeAddress(Address address);

    public User getUserDetail(User user);
    
    public List<Address> getAddress(int userId);

    public void changePassword(int userId, String password);
}
